import axios from 'axios'

export default {
  async getService ( id ) {
    let result = await axios({
      url: '/api/warehouse/service/'+id,
      method: 'get'
    })
    return result
  },
  async doService( id , data) {
    let result = await axios({
      url : '/api/warehouse/service/'+id,
      method : 'post',
      data: data
    })
    return result
  }
}
